// in theme/app_theme.dart

import 'package:casdon/app/config/theme/checkbox_theme.dart';
import 'package:casdon/app/config/theme/color_theme.dart';
import 'package:flutter/material.dart';
import 'package:casdon/app/config/theme/text_theme.dart';

class AppTheme {
  AppTheme._();

  static ThemeData get lightTheme => ThemeData(
    useMaterial3: true,
    brightness: Brightness.light,
    colorScheme: const ColorScheme.light(
      primary: Color(0xFF6758D4),
      onPrimary: Colors.white,
      surface: Color(0xFFF7F7F7),
    ),
    textTheme: CDTextTheme.textTheme,
    checkboxTheme: customCheckboxTheme,
    extensions: <ThemeExtension<dynamic>>[
      CDColorTheme(
        disabledButtonBack: Color(0xFFD1CDF2),
        headLargeTitle: Colors.black.withOpacity(0.9),
        textColor3: Colors.black.withOpacity(0.6),
        textColor2: Colors.black.withOpacity(0.4),
        textColor1: Colors.black.withOpacity(0.9),
        brand1: Color(0xFFF2F3FF),
        gy4: Colors.black.withOpacity(0.26),
        bgColorF7: Color(0xFFF7F7F7),
        warning5: Color(0xFFE37318),
        gray1: Color(0xFFF7F7F7),
        gray6: Color(0xFFB2B2B2),
        gray2: Color(0xFFF2F2F2),
      ),
    ],
    // 你还可以自定义其他主题属性，比如 AppBarTheme, TextTheme 等
  );

  static ThemeData get darkTheme => ThemeData(
    useMaterial3: true,
    brightness: Brightness.dark,
    colorScheme: const ColorScheme.dark(
      primary: Color(0xFF6758D4),
      onPrimary: Colors.white,
      surface: Color(0xFFF7F7F7),
    ),
    textTheme: CDTextTheme.textTheme,
    checkboxTheme: customCheckboxTheme,
    extensions: <ThemeExtension<dynamic>>[
      CDColorTheme(
        disabledButtonBack: Color(0xFFD1CDF2),
        headLargeTitle: Colors.black.withOpacity(0.9),
        textColor3: Colors.black.withOpacity(0.6),
        textColor2: Colors.black.withOpacity(0.4),
        textColor1: Colors.black.withOpacity(0.9),
        brand1: Color(0xFFF2F3FF),
        gy4: Colors.black.withOpacity(0.26),
        bgColorF7: Color(0xFFF7F7F7),
        warning5: Color(0xFFE37318),
        gray1: Color(0xFFF7F7F7),
        gray6: Color(0xFFB2B2B2),
        gray2: Color(0xFFF2F2F2),
      ),
    ],
    // 你还可以自定义其他主题属性，比如 AppBarTheme, TextTheme 等
  );
}
